Don't lose top specpdl entry when memory is exhausted.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Jul 2013 00:24:38 +0000 (17:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Jul 2013 00:24:38 +0000 (17:24 -0700)
commit9c50f87b0753950b9a4f968abb6d520047136e2e
treee88764218c250ce70dd078a8e07c30912451ef3c
parentf69308cbe4261eebb4972b99374ae03ac9d8087d
Don't lose top specpdl entry when memory is exhausted.

* eval.c (grow_specpdl): Increment specpdl top by 1 and check for
specpdl overflow here, to simplify callers; all callers changed.
Always reserve an unused entry at the stack top; this avoids
losing the top entry's information when memory is exhausted.
src/ChangeLog
src/eval.c